import ByCell from "@/components/ui/ByCell";
import ByCol from "@/components/ui/ByCol";
import ByRow from "@/components/ui/ByRow";
import { CustomerItem } from "@/types/customer";

export default ({ source }: { source: CustomerItem }) => {
  return (
    <>
      <ByRow wrap>
        <ByCol span={5}>
          <ByCell vertical label="客户名称">
            {source.customerName}
          </ByCell>
        </ByCol>

        <ByCol span={7}>
          <ByCell vertical label="装修地址">
            {source.decorationFullAddress || "--"}
          </ByCell>
        </ByCol>

        <ByCol span={5}>
          <ByCell vertical label="地理位置">
            {source.presentAddress || source.position}
          </ByCell>
        </ByCol>

        <ByCol span={7}>
          <ByCell vertical label="联系电话">
            {source.mobileTelephone}
          </ByCell>
        </ByCol>

        <ByCol span={5}>
          <ByCell vertical label="客户类型">
            {source.customerType}
          </ByCell>
        </ByCol>

        <ByCol span={7}>
          <ByCell vertical label="门店">
            {source.marketingDeptName}
          </ByCell>
        </ByCol>

        <ByCol span={5}>
          <ByCell vertical label="是否上门">
            {source.isWalkIn == 1 ? "是" : "否"}
          </ByCell>
        </ByCol>
        <ByCol span={7}>
          <ByCell vertical label="首次上门">
            {source.firstVisitDate || "--"}
          </ByCell>
        </ByCol>
        <ByCol span={5}>
          <ByCell vertical label="是否期房">
            
          </ByCell>
        </ByCol>
        <ByCol span={7}>
          <ByCell vertical label="远期日期">
            
          </ByCell>
        </ByCol>
        <ByCol span={5}>
          <ByCell vertical label="预计量房"></ByCell>
        </ByCol>

        <ByCol span={7}>
          <ByCell vertical label="客户来源">
            {source.customerSource || "--"}
          </ByCell>
        </ByCol>

        {/* <ByCol span={5}>
          <ByCell vertical label="客户状态">
            ？？
          </ByCell>
        </ByCol>
        <ByCol span={7}>
          <ByCell vertical label="营销类型">
            ？？
          </ByCell>
        </ByCol> */}

        <ByCol span={5}>
          <ByCell vertical label="营销部门">
            {source.salesManDeptName}
          </ByCell>
        </ByCol>

        <ByCol span={7}>
          <ByCell vertical label="业务员">{source.salesman}</ByCell>
        </ByCol>
        <ByCol span={5}>
          <ByCell vertical label="建筑面积">{source.CoveredArea || '--'}</ByCell>
        </ByCol>
        <ByCol span={7}>
          <ByCell vertical label="实用面积">{source.area}</ByCell>
        </ByCol>
        <ByCol span={5}>
          <ByCell vertical label="客户备注">{source.remark}</ByCell>
        </ByCol>
      </ByRow>
    </>
  );
};
